package top.xzhanyao.yowshare.authserver.generator;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordEcode {

    /**
     * 加密密码
     */
    private static void encryptPassword(String password){
        password = new BCryptPasswordEncoder().encode(password);
        System.out.println(password);
    }

    public static void main(String[] args) {
        encryptPassword("123456");
    }

}
